package com.example.springbootdemo.proxy.staticproxy.implproxy;

/**
 * @author ：cici
 * @date ：Created in 2019/10/17 13:36
 * 通过聚合实现的代理，比通过继承类要少些
 */
public class TestMain {

    public static void main(String[] args) {
        LogicImpl logic = new LogicImpl();
        DoSomethingImpl doSomething = new DoSomethingImpl(logic);
        doSomething.logic();
    }

}
